package com.example.fist.dao;

import com.example.fist.entity.FatherEntity;
import com.example.fist.personRepository.AdminJpaRepository;
import com.example.fist.personRepository.CodeJpaRepository;
import com.example.fist.personRepository.FatherJpaRepository;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class FatherDao {

    @Autowired
    private FatherJpaRepository fatherRepository;


    public FatherDao(FatherJpaRepository fatherRepository){

        this.fatherRepository=fatherRepository;
    }

    public List<FatherEntity> Get(){
        return  fatherRepository.findAll();
    }
}
